package com.jvm;

import java.util.function.Consumer;

/**
 * Interface01..
 *
 * in a class file whose version number is 52.0 or above, each method of an interface must have exactly one of its ACC_PUBLIC and ACC_PRIVATE flags set.
 *
 * java8 default 方法调用了lambda表达式 ，致使这样private
 *
 * @author Lizhong
 * @date 2019/3/5
 */
public interface Interface01 {
    default Consumer andThen(Consumer after) {
         return (val) -> {  after.accept(""); };
    }
}
